<!-- #region setup -->
<script lang="ts" setup>
import {BytUploadExcelPopup} from '@byt/components';
import axios from 'axios'
import {ref} from 'vue'
const request = axios;
// 表单数据
const showImportExcel = ref(false);
const handleSuccess = (data) => {
  console.log("文件已上传",data)
}
</script>
<!-- #endregion setup -->

<!-- #region first -->
<n-button @click="showImportExcel = true">打开上传弹窗</n-button>
<BytUploadExcelPopup v-model:show="showImportExcel" title="批量导入缴费单" 
      downloadUrl="https://img.yummall.cn/payment_template.xlsx"  
      @update:url="handleSuccess" :request="request"/>
<!-- #endregion first -->
